package com.campus.mapper;

import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserPermissionMapper{
    /**
     * 获取用户菜单权限
     */
    @Select("SELECT DISTINCT route FROM view_permission WHERE user_id = #{id}")
    List<String> getRoutes(Long id);
}
